unit uAbout;

interface

uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
  Buttons, ExtCtrls;

type
  TfAbout = class(TForm)
    Panel1: TPanel;
    lAppName: TLabel;
    lAppVersion: TLabel;
    Panel2: TPanel;
    OKButton: TButton;
    Bevel1: TBevel;
    Label1: TLabel;
    Label4: TLabel;
    Memo1: TMemo;
    Label5: TLabel;
    lOrgName: TLabel;
    lUrAddress: TLabel;
    lUrName: TLabel;
    lUrPhone: TLabel;
    lExpireDate: TLabel;
    procedure FormCreate(Sender: TObject);
    procedure OKButtonClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fAbout: TfAbout;

implementation

uses uLicense;

{$R *.dfm}

procedure TfAbout.FormCreate(Sender: TObject);
begin
  lAppName.Caption := Format(lAppName.Caption, [Application.Title]);
  if(HLicense.IsFileParsed)then
  begin
    lOrgName.Caption := Format(lOrgName.Caption, [HLicense.License.OrgName]);
    lUrName.Caption := Format(lUrName.Caption, [HLicense.License.UrName]);
    lUrAddress.Caption := Format(lUrAddress.Caption, [HLicense.License.PostCode, HLicense.License.Country, HLicense.License.Area, HLicense.License.City, HLicense.License.UrAddress]);
    lUrPhone.Caption := Format(lUrPhone.Caption, [HLicense.License.UrPhone]);
    lExpireDate.Caption := Format(lExpireDate.Caption, [DateToStr(HLicense.License.ExpireDate)]);
  end;
end;

procedure TfAbout.OKButtonClick(Sender: TObject);
begin
  Close();
end;

end.
 
